Draw two unknown equations as lines, then three possibilities arise:
Unique Solution
No Solutions
Infinitely Many Solutions
Vectors
object with magnitude and direction; models displacement
vectors are equal iff same magnitude and same direction
Vector going from (a1,a2,...,an) to (b1,b2,...,bn) is ⎝⎜⎜⎜⎜⎛b1−a1b2−a2⋮bn−an⎠⎟⎟⎟⎟⎞=⎝⎜⎜⎜⎜⎛b1b2⋮bn⎠⎟⎟⎟⎟⎞−⎝⎜⎜⎜⎜⎛a1a2⋮an⎠⎟⎟⎟⎟⎞
vector starting at origin and going a point is denoted with a vector of that point
Vector Operations
scalar multiplication makes vector longer/shorter
vector sum represents combined displacement
parallelogram rule shows parallelogram with v, w, v+w
Linear Surfaces
Lines
Line in R2 through (1,2) and (3,1) is comprised of vectors {(12)+t(2−1)∣∣∣∣∣t∈R}
Vector associated with parameter t, (2−1), is a direction vector
Intuition
line through A=(a1,...,an) and B=(b1,...,bn) is one point on the line (eg A) plus some multiple of the displacement vector (eg B−A)
Planes
Plane in R3 going through (a1,a2,a3), (b1,b2,b3), (c1,c2,c3) consists of ⎩⎪⎨⎪⎧⎝⎜⎛a1a2a3⎠⎟⎞+t⎝⎜⎛b1−a1b2−a2b3−a3⎠⎟⎞+s⎝⎜⎛c1−a1c2−a2c3−a3⎠⎟⎞∣∣∣∣∣∣∣t,s∈R⎭⎪⎬⎪⎫
A set in the form {p+t1v1+t2v2+⋯+tkvk∣t1,t2,...,tk∈R} where v1,v2,...,vk∈Rn and k≤n is a k-dimensional linear surface or k-flat→ multi-dimensional extension of lines and planes
Metrics
Length
length of v∈Rn is ∣v∣=v12+⋯+vn2
Clearly, ∣av∣=∣a∣∣v∣ for all a∈R and all v∈Rn (note: ∣−v∣=∣v∣)
normalize vector v to unit length by taking v/∣v∣
Dot Product
dot product or inner product or scalar product of two n-component vectors is the linear combination of the components: u⋅v=u1v1+u2v2+⋯+unvn
Properties:
v⋅v=∣v∣2
u⋅v=v⋅u for all u,v∈Rn (symmetry)
(au)⋅(bv)=ab(u⋅v) for all a,b∈R and all u,v∈Rn
(u1+u2)⋅(v1+v2)=u1⋅v1+u1⋅v2+u2⋅v1+u2⋅v2 for all u1,u2,v1,v2∈Rn
3 and 4 together express bilinearity
For any u,v∈Rn, ∣u+v∣≤∣u∣+∣v∣
with equality iff one vector is a nonnegative scalar multiple of the other
Proof later
Cauchy-Schwarz Inequality
For any u,v∈Rn u⋅v≤∣u⋅v∣≤∣u∣∣v∣
Equality ∣u⋅v∣=∣u∣∣v∣ iff one vector is a scalar multiple of the other
Equality u⋅v=∣u∣∣v∣ iff one vector is a nonnegative scalar multiple of the other u⋅v≤∣u⋅v∣ should be obvious
Proof of Cauchy-Schwarz
Let u,v∈Rn and t∈R.
By the trivial inequality, ∣u+tv∣2≥0
Using properties of dot products and expanding, ∣u+tv∣2=(u+tv)⋅(u+tv)=∣u∣2+2tu⋅v+∣v∣2=∣u∣2−2tu⋅v+t2∣v∣2≥0
Now consider this as a quadratic equation in t. This implies there are 0 or 1 real roots, thus the discriminant is nonpositive: (2u⋅v)2−4∣u∣2∣v∣2≤0
Rearranging and simplifying gives ∣u⋅v∣≤∣u∣∣v∣
Case when one vector is a multiple of the other or either is 0 is trivial.
Proof of Triangle Inequality
Since all numbers are nonnegative, the inequality holds iff ifs square holds: ∣u+v∣2≤(∣v∣+∣u∣)2
Left hand side implies ∣u∣2+2u⋅v+∣v∣2
Right hand side imples ∣u∣2+2∣u∣∣v∣+∣v∣2
The inequality simplies to u⋅v≤∣u∣∣v∣
This is true by Cauchy-Schwarz, so the Triangle Inequality must be true. By the equality condition of Cauchy-Schwarz, equality holds iff one vector is a nonnegative scalar multiple of the other.
Angles
Angle between u,v∈R is: θ=arccos(∣u∣∣v∣u⋅v)
Note: by Cauchy-Schwarz, the argument of arccos is between −1 and 1
Consider triangle formed by v,u,u−v
Use law of cosines and simplify
If θ=0, u∥v (parallel)
If θ=π/2, u⊥v (orthogonal)
If θ=π, u∥v in opposite directions → Vectors from R are orthogonal iff their dot product is 0
Relations and Partitions
return to Set Theory
relation between things (eg '<' or '=') binary relation on set A is a set of ordered pairs of elements of A
Examples
the relation '<' on the integers include (3,5), (3,7), (1,100)
the equality relation: (1,1), (2,2), etc
the relation 'closer than 10': {(x,y)∣∣x−y∣<10}
Equivalence Relation:
relation showing two objects are alike in some way
must satisfy:
reflexivity: object is related to itself
symmetry: if a is related to b, b is related to a
transivity: if a is related to b and b is related to c, a is related to c
on the integers, '=' is an equivalence relation, '<' does not satisfy reflexivity or symmetry, 'nearer than 10' fails transitivity
Partitions
in the 'same sign' relation, three kinds of pairs:
pairs of positives
pairs of negatives
pair of 0
Therefore, integers fall into exactly one of three classes: positive, negative, zero
A partition of a set Ω is a collection of subsets {S0,S1,...} s.t. every element of Ω is an element of a subset (S0∪S1∪⋯=Ω) and overlapping parts are equal (if Si∩Sj=∅ then Si=Sj)
Example
Ω−{n/d∣n,d∈Z,d=0}
Define Sn,d:n^/d^∈Sn,d if n^d=nd^
This partitions the set into equivalent fractions; i.e. "1/2" = "2/4"
Each part of a partition is an equivalence class, from which one is sometimes picked to be the class representative
called canonical representative if there is some natural scheme (eg simplest/reduced form of a fraction)
Summary Section:
binary relation: subset R of set A×A
instead of (x,y)∈R, write x∼Ry or x∼y and say "x is related to y for the relation R"
reflexive: x∼x for all x∈A
symmetric: if x∼y then y∼x
transitive: if x∼y and y∼z, then x∼z
binary relation satisfying reflexivity, symmetry, and transitivity is an equivalence relation
a partition of a set A is a collection of disjoint subsets whose union is A
Gauss-Jordan Reduction
extension of Gauss's Method
Instead of using back substitution from echelon form, make leading coefficients 1 and continue to use row operations to eliminate upwards- reduced row echelon form
(all columns with a pivot are canceled)
Example
Solve the following system of equations 3x−2y+z=7x+y−3z=−62x−2y−3z=−7
The resulting augmented matrix is ⎝⎜⎛312−21−21−3−37−6−7⎠⎟⎞
First get it to echelon form ρ1↔ρ2⎝⎜⎛1321−2−2−31−3−67−7⎠⎟⎞−3ρ1+ρ2−2ρ1+ρ3⎝⎜⎛1001−5−4−3103−6255⎠⎟⎞−4/5ρ2+ρ3⎝⎜⎛1001−50−310−5−625−15⎠⎟⎞
Next, make the leading coefficients 1 −1/5ρ2−1/5ρ3⎝⎜⎛100110−3−21−6−53⎠⎟⎞
Finally, use the pivots to clear out each row 3ρ3+ρ12ρ3+ρ2⎝⎜⎛100110001313⎠⎟⎞−ρ2+ρ1⎝⎜⎛100010001213⎠⎟⎞
This shows the solution is ⎝⎜⎛xyz⎠⎟⎞=⎝⎜⎛213⎠⎟⎞
pivoting on an entry: using the entry to clear out the rest of a column (eg using bottom row z to clear out all other z)
"Reduces to" is an equivalence
matrix A reduces to matrix B if B is obtained from A using successive elementary row operations given by Gauss's Method
Proof of Equivalence
Reflexivity: a matrix reduces to itself if you apply no operators, so A∼A
Symmetry: if A reduces to B, then B can be reduced to A by applying the opposite of the row operations:
swapping can be reversed by swapping again
rescaling by a factor of k can be reversed by rescaling by a factor of 1/k
row combination can be reversed by subtracting if added or adding if subtracted
Transitivity: if A reduces to B after a set of row operations and B reduces to C after a set of row operations, then A reduces to C after the combined set of row operations
Thus, all three conditions are satisfied, and "reduces to" is an equivalence
→ matrices that reduce to each other are row equivalent
Linear Combination Lemma
Reduction steps (Gauss's method) takes linear combinations of the rows A linear combination of linear combinations is a linear combination
Proof
Given set c1,1x1+⋯+c1,nxn through cm,1x1+⋯+cmnxn, consider linear combination d1(c1,1x1+⋯+c1,nxn)+⋯+dm(cm,1x1+⋯+cm,nxn)
this can be rearranged to (d1c1,1+⋯+dmcm,1)x1+⋯+(d1c1,n+⋯+dmcm,n)xn
which is a linear combination
This implies each row in a reduced matrix is a linear combination of the rows of the first
Proof Outline
Use induction. The base step is 0 steps.
Assume everything after k steps is a linear combination, then show k+1 must still be a linear combiantion after any of the three moves.
Essentially, show linear combination → linear combination after any of the steps.
In short: Gauss's method takes linear combinations of the rows to eliminate any linear relationship amont them
Reduced echelon form is unique
Two row equivalent matrices will yield the same reduced echelon form matrix → it is the canonical form